package com.qzsoft.zhjd.exp.modules.laboratorypenetration.controller;

import java.util.Map;

import com.qzsoft.zhjd.exp.modules.laboratorypenetration.dto.LaboratoryPenetrationDto;
import com.qzsoft.zhjd.exp.modules.laboratorypenetration.service.LaboratoryPenetrationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzsoft.jeemis.common.utils.Result;
import com.qzsoft.zhjd.common.utils.ResultUtils;

/**
 * @ClassName: ExpPenetrationController
 * @Description: 针入度控制器
 * @author linhuawei
 * @since 2021-04-20
 */
@RestController
@RequestMapping("/api/penetration")
public class LaboratoryPenetrationController {

    @Autowired
    private LaboratoryPenetrationService penetrationService;

    /**
     * @Title: page
     * @Description: 获取针入度分页列表
     * @param params 查询条件
     * @return Result 针入度分页列表
     */
    @GetMapping("page")
    public Result<IPage<LaboratoryPenetrationDto>> page(@RequestParam Map<String, Object> params) {
        IPage<LaboratoryPenetrationDto> page = penetrationService.page(params);
        return ResultUtils.ok(page);
    }

}
